|
Workout With Friends
Stay fit with a little motivation
|
Invite new user token. More...


Public Member Functions | |
| def | is_valid |
Public Member Functions inherited from wowf.models.tokens.Token | |
| def | user_id |
| def | user |
| def | __init__ |
| def | __unicode__ |
| def | create |
| def | get_by_token |
| def | delete_expired |
Static Public Attributes | |
| tuple | user_id |
Static Public Attributes inherited from wowf.models.tokens.Token | |
| tuple | id = Column(Integer(unsigned=True), primary_key=True) |
| tuple | token = Column(CHAR(36), nullable=False, unique=True, default=lambda: str(uuid.uuid4())) |
| tuple | created_at = Column(DateTime, nullable=False, default=current_timestamp) |
| tuple | expires_at = Column(DateTime, nullable=False) |
Static Private Attributes | |
| string | __tablename__ = 'invite_tokens' |
Additional Inherited Members | |
Public Attributes inherited from wowf.models.tokens.Token | |
| user | |
| expires_at | |
Invite new user token.
Invitations need not necessarily come from any specific user, so the user is optional.
| def wowf.models.tokens.InviteToken.is_valid | ( | self | ) |
Reimplemented from wowf.models.tokens.Token.
|
staticprivate |
|
static |
1.8.1.2